﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="SFsoftSite.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <h1 style="padding-left:30px">
        Login
    </h1>
    <br />
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <table align="center" width="100%">
                <tr>
                    <td style="text-align:right; width:40%">
                        E-Mail:
                    </td>
                    <td style="text-align:left; width:60%">
                        <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Width="214px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="O e-mail digitado é inválido!" ControlToValidate="txtEmail" ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right; width:40%">
                        Senha:
                    </td>
                    <td style="text-align:left; width:60%">
                        <asp:TextBox ID="txtSenha" TextMode="Password" MaxLength="30" runat="server" 
                            Width="214px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtSenha"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align:center; width:50%">
                        <asp:Button ID="btnLogar" Text="Logar" runat="server" OnClick="Logar_Click" 
                            style="text-align: center" />

                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
